package com.goldcn.user.dao;

import com.goldcn.user.model.UserAddress;

import java.util.List;
import java.util.Map;

public interface UserAddressMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserAddress record);

    int insertSelective(UserAddress record);

    UserAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserAddress record);

    int updateByPrimaryKey(UserAddress record);

    List<UserAddress> selectByUserID(Long userID);

    int updateIsDefault(Long id);

    int updateNoDefaultByUserID(Long userID);

    UserAddress selectDefaultAddressByUserID(Long userID);

    List<Map<String,Object>> getAddressMapByIds();

    int setDeleteFlag(Long id);
}